<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="5;url=http://www.audiologysystems.com">
<title>Thank You for your Subscribtion </title>

</head>

<body>
<?php
/**
This Example shows how to Subscribe a New Member to a List using the MCAPI.php 
class and do some basic error checking.
**/
require_once 'inc/MCAPI.class.php';
require_once 'inc/config.inc.php'; //contains apikey

$api = new MCAPI($apikey);

if(isset($_POST['email']))
{
	$my_email = $_POST['email'];
	$retval = $api->listSubscribe( $listId, $my_email);

	if ($api->errorCode){
		echo "Unable to load listSubscribe()!\n";
		echo "\tCode=".$api->errorCode."\n";
		echo "\tMsg=".$api->errorMessage."\n";
	} else {
		echo "Subscribed - look for the confirmation email!\n";
	}
	//print $my_email;

}



?>
</body>
</html>
